package edu.xhu.model.search.constant;

import io.swagger.models.auth.In;

public class SearchConstant {
    /**
     * ES 中视频索引库的名称
     */
    public static final String VIDEO_INDEX_NAME = "videoindex";


    /**
     * redis中的 List 结构，热搜词条滑动窗口
     */
    public static final String HOT_SEARCH_TERM_WINDOW = "bili_search:hot_search_window";

    /**
     * 热搜词条滑动窗口的长度
     */
    public static final Integer HOT_SEARCH_TERM_WINDOW_SIZE = 50;


    /**
     * redis中的 zset 结构，滑动窗口中热搜词条的排名
     */
    public static final String HOT_SEARCH_RANKING_ZSET = "bili_search:hot_search_ranking";


    /**
     * redis中的 hset 结构，滑动窗口中热搜词条的更新时间
     */
    public static final String HOT_SEARCH_UPDATE_TIME_HSET = "bili_search:hot_search_update_time";


    /**
     * kafka 热搜词条消费者组
     */
    public static final String HOT_SEARCH_TOPICS_CONSUMER_GROUP = "bili-search-group";


    /**
     * 热搜词条处理主题
     */
    public static final String HOT_SEARCH_PROCESSING_TOPIC = "bili-hot-search-handler";
}


